import {teacherInstance} from "@/api/common/util.ts";

export const addHomework = (data: any) => {
    return teacherInstance.post('/homework', data);
}
export const getHomework = (courseId: any) => {
    return teacherInstance.get('/homework/teacher/' + courseId + '/list')
}

export const getHomeworkDetail = (homeworkId: any) => {
    return teacherInstance.get('/homework/teacher/' + homeworkId);
}

export const getCorrectList = (homeworkId: any) => {
    return teacherInstance.get('/homework/correct/' + homeworkId);
}

export const correctHomework = (homeworkId: any, studentId: any, score: any) => {
    return teacherInstance.post('/homework/correct/' + homeworkId + '/' + studentId + '/' + score);
}